import http from "./http.ts";

/**
 * 文件上传
 */
export const Upload = (FromData: any) => http.post("/oss/upload", FromData)
/**
 * 文件下载
 * @param path
 * @constructor
 */
export const Download = (path: string) => http.get("/oss/download/" + path)
/**
 * 文件预览
 * @param path
 * @constructor
 */
export const Preview = (path:string) => http.get("/oss/preview/"+path)


export const Page = (params:any) =>http.get("/oss/page",{
    params:params
})

export const Delete = (id:string) =>http.delete("/oss/"+id)